package mis510.homefinders;



import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

@SuppressWarnings("deprecation")
public class Roommatereq extends TabActivity{
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        Intent intent = this.getIntent();
		Bundle bundle = intent.getExtras();
		String user_email = null;
		user_email = bundle.getString("useremail");
		System.out.println("email add in parent: "+user_email);
		
			System.out.println("in roommatereq");
	        setContentView(R.layout.roommatereq);
	        
	        TabHost mTabHost = getTabHost();
	        //mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
	        	      	        
	        System.out.println("after tab");
	        // Tab for Photos
	        TabSpec chk_spec = mTabHost.newTabSpec("Request Check");
	        System.out.println("1");
	        // setting Title and Icon for the Tab
	        chk_spec.setIndicator("Request Check");
	        System.out.println("2");
	        Intent chk_Intent = new Intent(this, Viewreq.class);
	        System.out.println("3");
	        chk_spec.setContent(chk_Intent);
	        System.out.println("4");
	 
	        // Tab for Songs
	        TabSpec req_spec = mTabHost.newTabSpec("New Request");
	        req_spec.setIndicator("New Request");
	        Intent req_Intent = new Intent(this, Reqform.class);
	        req_spec.setContent(req_Intent);
	 
	        System.out.println("5");
	        // Adding all TabSpec to TabHost
	        
	        mTabHost.addTab(chk_spec); // Adding photos tab
	        mTabHost.addTab(req_spec); // Adding songs tab
	        System.out.println("set tab");
	    }
}